<script setup>

</script>

<template>
  <div class="card-container w-full h-full">
    <div class="card-content" id="materialContent">
      <!-- 数据将通过JavaScript动态填充 -->
    </div>
    <div class="scroll-indicator"></div>
  </div>
</template>

<style scoped lang="scss">
.card-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-header {
  padding: 20px;
  background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
  color: white;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-header h2 {
  margin: 0;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-header h2 i {
  font-size: 28px;
}

.card-content {
  height: calc(100% - 70px);
  overflow-y: auto;
  padding: 15px;
  background: #f8f9fa;
}

.material-item {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.material-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: rgba(75, 108, 183, 0.2);
}

.material-info-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.material-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.material-info:hover {
  background: #f0f2f5;
}

.material-info.full-width {
  background: linear-gradient(to right, #f8f9fa, #f0f2f5);
}

.material-info.half-width {
  display: inline-flex;
  width: calc(50% - 6px);
}

.material-label {
  color: #4b6cb7;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 70px;
  font-weight: 500;
}

.material-label i {
  color: #4b6cb7;
  font-size: 14px;
}

.material-value {
  color: #333;
  font-weight: 500;
  flex: 1;
  text-align: right;
  font-size: 14px;
}

.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
  pointer-events: none;
}

.status-badge {
  position: absolute;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-badge i {
  color: #4CAF50;
  text-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #4b6cb7;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a5a9c;
}
</style>
